/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Mercury.Entity.SystemModels;

namespace Mercury.Entity.DomainModels
{
    [Entity(TableCnName = "元素数据",TableName = "ProductElementBOM")]
    public partial class ProductElementBOM:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Id { get; set; }

       /// <summary>
       ///产品ID
       /// </summary>
       [Display(Name ="产品ID")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ProductId { get; set; }

       /// <summary>
       ///元素Id
       /// </summary>
       [Display(Name ="元素Id")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ElementId { get; set; }

       /// <summary>
       ///元素名称
       /// </summary>
       [Display(Name ="元素名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ElementName { get; set; }

       /// <summary>
       ///计算元素
       /// </summary>
       [Display(Name ="计算元素")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string CalculatingElement { get; set; }

       /// <summary>
       ///元素类别
       /// </summary>
       [Display(Name ="元素类别")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ElementType { get; set; }

       /// <summary>
       ///不得检出标识
       /// </summary>
       [Display(Name ="不得检出标识")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? NotDetectable { get; set; }

       /// <summary>
       ///不得检出排序
       /// </summary>
       [Display(Name ="不得检出排序")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? NoDSort { get; set; }

       /// <summary>
       ///元素目标比例
       /// </summary>
       [Display(Name ="元素目标比例")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? TargetProportion { get; set; }

       /// <summary>
       ///元素内控上限
       /// </summary>
       [Display(Name ="元素内控上限")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? UpperLimitIC { get; set; }

       /// <summary>
       ///元素内控下限
       /// </summary>
       [Display(Name ="元素内控下限")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? LowerLimitIC { get; set; }

       /// <summary>
       ///元素标准上限
       /// </summary>
       [Display(Name ="元素标准上限")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? UpperLimitStandard { get; set; }

       /// <summary>
       ///元素标准下限
       /// </summary>
       [Display(Name ="元素标准下限")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? LowerLimitStandard { get; set; }

       /// <summary>
       ///是否启用
       /// </summary>
       [Display(Name ="是否启用")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Enable { get; set; }

       /// <summary>
       ///添加人
       /// </summary>
       [Display(Name ="添加人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string CreateUserName { get; set; }

       /// <summary>
       ///添加人ID
       /// </summary>
       [Display(Name ="添加人ID")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string CreateUserId { get; set; }

       /// <summary>
       ///添加时间
       /// </summary>
       [Display(Name ="添加时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ModifyUserName { get; set; }

       /// <summary>
       ///修改人ID
       /// </summary>
       [Display(Name ="修改人ID")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ModifyUserId { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///删除标识
       /// </summary>
       [Display(Name ="删除标识")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? DeletionFlag { get; set; }

       
    }
}